package jnpf.service;


import com.baomidou.mybatisplus.extension.service.IService;
import jnpf.entity.QyDepartmentEntity;
import jnpf.exception.WxErrorException;
import jnpf.permission.entity.OrganizeEntity;

import java.util.List;

/**
 * 企业号部门
 */
public interface QyDepartmentService extends IService<QyDepartmentEntity> {

    /**
     * 列表
     *
     * @return
     */
    List<QyDepartmentEntity> getList();

    /**
     * 部门列表
     *
     * @return
     */
    List<QyDepartmentEntity> getSyncList();

    /**
     * 列表
     *
     * @param userId
     * @return
     */
    List<QyDepartmentEntity> getListByUserId(String userId);

    /**
     * 同步数据
     *
     * @param organizelist 部门列表
     */
    void synchronization(List<OrganizeEntity> organizelist) throws WxErrorException;
}
